const { Schema, model } = require('mongoose');
//设置集合结构
const adminsSchema = new Schema({
    account: String,
    password: String,
    status: {
        type: Boolean,
        default: true
    }
}, { versionKey: false })

//设置集合模型
module.exports.adminsModel = model('adminsModel', adminsSchema, 'admins')

